package com.atguigu.blog.mapper;

import com.atguigu.blog.pojo.Article;
import com.atguigu.blog.pojo.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author MikeCoder
 * @create 2023-11-2421:00
 * @description:
 * @verson:
 */
@Mapper
public interface ArticleMapper {
    List<Article> selectArticleByCid(Category category);

    Article selectArticelById(Long id);

    List<Article> selectArticleByUid(Long uid);

    Integer insert(Article article);

    Integer update(Article article);

    Integer delete(Long id);
}
